package edu.iss.demo.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the compensation_leave database table.
 * 
 */
@Entity
@Table(name="compensation_leave")
@NamedQuery(name="CompensationLeave.findAll", query="SELECT c FROM CompensationLeave c")
public class CompensationLeave implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="compensation_id")
	private String compensationId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="in_time")
	private Date inTime;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="out_time")
	private Date outTime;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="process_date")
	private Date processDate;

	private String status;

	//bi-directional many-to-one association to Employee
	@ManyToOne
	@JoinColumn(name="employee_id")
	private Employee employee;

	public CompensationLeave() {
	}

	public String getCompensationId() {
		return this.compensationId;
	}

	public void setCompensationId(String compensationId) {
		this.compensationId = compensationId;
	}

	public Date getInTime() {
		return this.inTime;
	}

	public void setInTime(Date inTime) {
		this.inTime = inTime;
	}

	public Date getOutTime() {
		return this.outTime;
	}

	public void setOutTime(Date outTime) {
		this.outTime = outTime;
	}

	public Date getProcessDate() {
		return this.processDate;
	}

	public void setProcessDate(Date processDate) {
		this.processDate = processDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

}